home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
mkutil21.zip
/
MAKEDEFS
/
VC16.MK
< prev
next >
Wrap
Text File
|
1995-02-06
|
4KB
|
137 lines
#############################################################################
#
# Copyright (C) 1994 SciTech Software
# All rights reserved.
#
# Descripton: Generic DMAKE startup makefile definitions file. Assumes
# that the SCITECH environment variable has been set to point
# to where all our stuff is installed. You should not need
# to change anything in this file.
#
# Microsoft Visual C++ 1.5 16 bit version.
#
# $Id: vc16.mk 1.1 1995/02/06 12:50:38 kjb release $
#
#############################################################################
# Disable warnings for macros redefined here that were given
# on the command line.
__.SILENT := $(.SILENT)
.SILENT := yes
# File suffix definitions
L := .lib # Libraries
E := .exe # Executables
O := .obj # Objects
A := .asm # Assembler sources
P := .cpp # C++ sources
# Import enivornment variables that we use
TMPDIR := $(ROOTDIR)/tmp
.IMPORT .IGNORE : TMPDIR COMSPEC INCLUDE LIB SCITECH DBG OPT SHW BETA FPU
.IMPORT .IGNORE : USE_WIN16
# We use the MSDOS shell at all times
SHELL := $(COMSPEC)
GROUPSHELL := $(SHELL)
SHELLFLAGS := $(SWITCHAR)c
GROUPFLAGS := $(SHELLFLAGS)
SHELLMETAS := *"?<>
GROUPSUFFIX := .bat
DIRSEPSTR := \\
DIVFILE = $(TMPFILE:s,/,\)
# Default commands for compiling, assembling linking and archiving
CC := cl # C-compiler and flags
CFLAGS := /AL /YX /w
AS := tasm # Assembler and flags
ASFLAGS := /mx /m /D__COMM__ /i$(SCITECH)\INCLUDE
LD := cl # Loader and flags
LDFLAGS = $(CFLAGS)
LIB := lib # Librarian
LIBFLAGS := /NOI /NOE
# Optionally turn on debugging information
.IF $(DBG)
CFLAGS += /Yd /Zi # Turn on debugging for C compiler
ASFLAGS += /zi # Turn on debugging for assembler
.END
# Optionally turn on optimisations
.IF $(OPT)
CFLAGS += /G3 /Ox
.END
# Optionally turn on direct i387 FPU instructions
.IF $(FPU)
CFLAGS += /FPi87 /DFPU387
ASFLAGS += /DFPU387 /DFPU_REG_RTN
.END
# Optionally compile a shareware version of a product
.IF $(SHW)
LIB_DIR := LIBSW
CFLAGS += /DSHAREWARE
.ELSE
LIB_DIR := LIB
.END
# Optionally compile a beta release version of a product
.IF $(BETA)
CFLAGS += /DBETA
ASFLAGS += /DBETA
.END
# Use a larger stack during linking if requested ???? How the fuck do you
# specify linker options on the CL command line?????
.IF $(STKSIZE)
.ENDIF
# Optionally compile for 16 bit Windows DPMI
.IF $(USE_WIN16)
DX_CFLAGS += -DWINDPMI16
DX_ASFLAGS += -DWINDPMI16 -D__PM286__
.END
# Place to look for PMODE library files
.IF $(MK_PMODE)
.ELIF $(USE_WIN16)
PMLIB := win16\pmode.lib
.ELSE
PMLIB := pmode.lib
.END
# Define where to install library files
LIB_BASE := $(SCITECH)\$(LIB_DIR)\VC16
LIB_DEST := $(LIB_BASE)
# Definition of $(MAKE) macro for recursive makes.
MAKE = $(MAKECMD) $(MFLAGS)
# Macro to install a library file
INSTALL := cp
# Implicit generation rules for making object files
%$O: %.c ; +$(CC) /nologo $(CFLAGS) /c $<
%$O: %$P ; +$(CC) /nologo $(CFLAGS) /c $<
%$O: %$A ; +$(AS) $(ASFLAGS) $(<:s,/,\)
# Implicit rule for building a library file using response file
%$L: ; $(LIB) /nologo $(LIBFLAGS) $@ @$(mktmp -+$(?:t" &\n-+") &\n,,\n)
# Implicit rule for building an executable file using response file
%$E: ; $(LD) @$(mktmp $(LDFLAGS) /Fe$@ $(&:s/\/\\) $(PMLIB) $(EXELIBS))
# DMAKE uses this recipe to remove intermediate targets
.REMOVE :; $(RM) -f $<
# Turn warnings back to previous setting.
.SILENT := $(__.SILENT)
# We dont use TABS in our makefiles
.NOTABS := yes